<%@ page import="com.touzi.beans.dbs.users.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>用户列表</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/bootstrap.js"></script>
    <script src="js/jquery-3.3.1.js"></script>
    <style type="text/css">
        #content {
            padding: 16px;
        }
    </style>
</head>
<body>
<div id="content">

    <div class="input-group" style="width: 300px;margin-bottom: 16px">
        <form action="/users" method="get">
            <input name="method" value="findBydh" style="visibility: hidden;display: none">
            <input type="text" name="dianhua" placeholder="输入用户手机号码">
            <input type="submit" value="搜索">
        </form>
    </div>

    <div>
        <table class="table table-striped">
            <thead>
            <tr>
                <th>用户ID</th>
                <th>电话号码</th>
                <th>支付宝</th>
                <th>真名</th>
                <th>推荐人</th>
                <th>可提余额</th>
                <th>是否消费</th>
                <th>冻结</th>
                <th>注册时间</th>
                <th>编辑用户</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="user" items="${userlist}">
                <tr>
<%--dianhua     | mima     | zhifubao    | zhenming | zhuceshijian        | tuijianren | keyong | cousumed | frozen |--%>
                    <td><a href="/users?method=tuandui&id=${user.id}" title="查看用户层级">${user.id}</a></td>
                    <td>${user.dianhua}</td>
                    <td>${user.zhifubao}</td>
                    <td>${user.zhenming}</td>
                    <td>${user.tuijianren}</td>
                    <td>${user.keyong}</td>
                    <td>${user.cousumed}</td>
                    <td>${user.frozen}</td>
                    <td>${user.zhuceshijian}</td>
                    <td><a href="/users?method=tomodifybyid&id=${user.id}">编辑</a></td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>

    <div><p>共${total}条记录(搜索结果最多展示前100条) &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
        &nbsp;&nbsp;第${page}/${pages}页</p></div>
    <div class="input-group" style="width: 300px;margin-bottom: 16px">
        <form action="/users" method="get">
            <input name="method" value="userlist" style="visibility: hidden;display: none">
            <input type="number" name="page" placeholder="页码">
            <input type="submit" value="跳转">
        </form>
    </div>
</div>
</body>
</html>
